package com.yipao.db.domain.goods;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 商品原料
 *
 * @author tianhao
 * @date 2020/5/10 13:49
 **/
@Data
@NoArgsConstructor
public class GoodsMaterial {
    /**
     * 主键
     */
    private Integer id;
    /**
     * 原料名称
     */
    private String name;
    /**
     * 原料编码
     */
    private String code;
    /**
     * 设备参数
     */
    private String devParam;
    /**
     * 逻辑删除
     */
    private Integer deleted;
    /**
     * 创建时间
     */
    private LocalDateTime addTime;
    /**
     * 修改时间
     */
    private LocalDateTime updateTime;

    public GoodsMaterial(String name, String code, String devParam) {
        this.name = name;
        this.code = code;
        this.devParam = devParam;
    }

    public GoodsMaterial(Integer id, Integer deleted, LocalDateTime updateTime) {
        this.id = id;
        this.deleted = deleted;
        this.updateTime = updateTime;
    }
}
